package com.chj.comp.common.feign.annotation;

import com.chj.comp.common.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author cuihui
 * 自定义feign注解
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableFeignClients
@Import({ FeignConfiguration.class, // feign调用时，token统一处理
        })
public @interface EnableCompFeignClients {
    String[] value() default {};

    String[] basePackages() default {"com.chj.comp"};

    Class<?>[] basePackageClasses() default {};

    Class<?>[] defaultConfiguration() default {};

    Class<?>[] clients() default {};
}
